import request from '@/utils/request'

//菜单导航
export function checkRoleNav (params) {
  return request({
    url: 'channel/role/check-role-nav',
    method: 'get',
    params
  })
}
//返回/退出系统路径
export function getUrl (params) {
  return request({
    url: 'channel/config/get-url',
    method: 'get',
    params
  })
}
//返回/退出系统路径
export function signOut (data) {
  return request({
    url: 'channel/config/sign-out',
    method: 'post',
    data
  })
}

//获取订单处理数量
export function waitReceiv (data) {
  return request({
    url: 'channel/order/wait-receiv',
    method: 'post',
    data
  })
}
//获取查询商家
export function selectStore (data) {
  return request({
    url: 'channel/shop/select-store',
    method: 'get',
    data
  })
}
//广告列表
export function adList (params) {
  return request({
    url: 'channel/ad/ad-list',
    method: 'get',
    params
  })
}
//保存广告
export function postSaveAd (data) {
  return request({
    url: 'channel/ad/save-ad',
    method: 'post',
    data
  })
}
//查看广告数据
export function getSaveAd (params) {
  return request({
    url: 'channel/ad/save-ad',
    method: 'get',
    params
  })
}
//修改广告
export function modifyAd (data) {
  return request({
    url: 'channel/ad/modify-ad',
    method: 'post',
    data
  })
}
